package com.blkj.iam.shared.sms.service.impl;

import com.blkj.iam.shared.sms.enums.SmsTypeEnum;
import com.blkj.iam.shared.sms.service.SmsService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 阿里云短信业务类
 *
 * @author Ray
 * @since 2024/8/17
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class AliyunSmsService implements SmsService {

    /**
     * 发送短信验证码
     *
     * @param mobile         手机号 13388886666
     * @param smsType        短信模板 SMS_194640010
     * @param templateParams 模板参数 [{"code":"123456"}]
     * @return boolean 是否发送成功
     */
    @Override
    public boolean sendSms(String mobile, SmsTypeEnum smsType, Map<String, String> templateParams) {
        log.info("<UNK>{}<UNK>{}", mobile, smsType);
        return false;
    }

}
